.class public Lcom/instagram/android/creation/b/v;
.super Lcom/instagram/e/b/b;
.source "DirectShareFragment.java"

# interfaces
.implements Lcom/instagram/android/directshare/widget/j;
.implements Lcom/instagram/pendingmedia/model/i;


# instance fields
.field private Z:Lcom/instagram/android/creation/b/s;

.field private a:Lcom/instagram/pendingmedia/model/c;

.field private aa:Lcom/instagram/android/d/e/am;

.field private ab:Lcom/instagram/android/directshare/widget/i;

.field private ac:Z

.field private ad:Lcom/instagram/android/directshare/widget/d;

.field private ae:Ljava/lang/Runnable;

.field private af:Landroid/app/Dialog;

.field private final ag:Lcom/instagram/android/util/a;

.field private final ah:Landroid/os/Handler;

.field private ai:Lcom/instagram/android/creation/a;

.field private aj:Z

.field private ak:Lcom/facebook/b/a/j;

.field private al:Lcom/instagram/android/creation/b/aj;

.field private am:Lcom/instagram/android/creation/b/ak;

.field private an:Lcom/instagram/android/d/j/f;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/f",
            "<",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;>;"
        }
    .end annotation
.end field

.field private b:Landroid/widget/HorizontalScrollView;

.field private c:Landroid/view/ViewGroup;

.field private d:Landroid/widget/ImageView;

.field private e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

.field private f:Landroid/widget/EditText;

.field private g:Landroid/widget/ListView;

.field private h:Landroid/view/View;

.field private i:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 57
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 88
    new-instance v0, Lcom/instagram/android/util/a;

    invoke-direct {v0}, Lcom/instagram/android/util/a;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->ag:Lcom/instagram/android/util/a;

    .line 89
    new-instance v0, Lcom/instagram/android/creation/b/w;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/b/w;-><init>(Lcom/instagram/android/creation/b/v;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->ah:Landroid/os/Handler;

    .line 112
    new-instance v0, Lcom/instagram/android/creation/b/aj;

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/creation/b/aj;-><init>(Lcom/instagram/android/creation/b/v;Lcom/instagram/android/creation/b/w;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->al:Lcom/instagram/android/creation/b/aj;

    .line 114
    new-instance v0, Lcom/instagram/android/creation/b/ak;

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/creation/b/ak;-><init>(Lcom/instagram/android/creation/b/v;Lcom/instagram/android/creation/b/w;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->am:Lcom/instagram/android/creation/b/ak;

    .line 124
    new-instance v0, Lcom/instagram/android/creation/b/aa;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/b/aa;-><init>(Lcom/instagram/android/creation/b/v;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->an:Lcom/instagram/android/d/j/f;

    .line 593
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/v;Lcom/instagram/pendingmedia/model/c;)Lcom/instagram/pendingmedia/model/c;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 57
    iput-object p1, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    return-object p1
.end method

.method private a(Landroid/view/View;I)V
    .locals 7
    .parameter
    .parameter

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 377
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ac()Lcom/instagram/android/directshare/widget/i;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/instagram/android/directshare/widget/i;->c(I)Z

    move-result v0

    if-nez v0, :cond_0

    .line 402
    :goto_0
    return-void

    .line 381
    :cond_0
    sget v0, Lcom/facebook/aw;->recipient_toggle:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    .line 382
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ac()Lcom/instagram/android/directshare/widget/i;

    move-result-object v3

    invoke-virtual {v3, p2}, Lcom/instagram/android/directshare/widget/i;->d(I)Lcom/instagram/android/model/b/e;

    move-result-object v3

    .line 383
    new-instance v4, Lcom/instagram/pendingmedia/model/g;

    invoke-virtual {v3}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v3}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v4, v5, v6, v3}, Lcom/instagram/pendingmedia/model/g;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 386
    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 387
    iget-object v3, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v3}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v3

    invoke-virtual {v3, v4}, Lcom/instagram/pendingmedia/model/h;->b(Lcom/instagram/pendingmedia/model/g;)V

    .line 388
    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-nez v3, :cond_1

    :goto_1
    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    :cond_1
    move v1, v2

    goto :goto_1

    .line 390
    :cond_2
    iget-object v3, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v3}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v3

    invoke-virtual {v3}, Lcom/instagram/pendingmedia/model/h;->a()I

    move-result v3

    const/16 v5, 0xf

    if-ge v3, v5, :cond_4

    .line 391
    iget-object v3, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v3}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v3

    invoke-virtual {v3, v4}, Lcom/instagram/pendingmedia/model/h;->a(Lcom/instagram/pendingmedia/model/g;)V

    .line 392
    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-nez v3, :cond_3

    :goto_2
    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    :cond_3
    move v1, v2

    goto :goto_2

    .line 394
    :cond_4
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v1, Lcom/facebook/ba;->directshare_max_recipients_reached_title:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->b(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->directshare_max_recipients_reached_body:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->ok:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->af:Landroid/app/Dialog;

    .line 399
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->af:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    goto/16 :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/v;Landroid/content/Intent;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 57
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/v;->b(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/v;Landroid/view/View;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 57
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/v;->b(Landroid/view/View;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/v;Landroid/view/View;I)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 57
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/creation/b/v;->a(Landroid/view/View;I)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/v;Ljava/lang/CharSequence;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 57
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/v;->a(Ljava/lang/CharSequence;)V

    return-void
.end method

.method private a(Ljava/lang/CharSequence;)V
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x0

    .line 631
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->h:Landroid/view/View;

    sget v1, Lcom/facebook/aw;->row_search_for_x_container:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    .line 632
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->h:Landroid/view/View;

    sget v1, Lcom/facebook/aw;->row_search_for_x_textview:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->getContext()Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->search_for_x:I

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    aput-object p1, v3, v4

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 634
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ac()Lcom/instagram/android/directshare/widget/i;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/instagram/android/directshare/widget/i;->b(Z)V

    .line 635
    return-void
.end method

.method private a(Z)V
    .locals 2
    .parameter

    .prologue
    .line 531
    new-instance v0, Landroid/content/Intent;

    const-string v1, "MetadataFragment.INTENT_ACTION_UPDATE_DS_SHARE_ENABLED"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 532
    const-string v1, "MetadataFragment.IS_DS_SHARE_ENABLED"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 533
    invoke-static {v0}, Lcom/instagram/n/d;->b(Landroid/content/Intent;)V

    .line 534
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/v;)Z
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/v;->ac:Z

    return v0
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/v;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 57
    iput-boolean p1, p0, Lcom/instagram/android/creation/b/v;->aj:Z

    return p1
.end method

.method private ab()V
    .locals 3

    .prologue
    .line 369
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/h;->b()Z

    move-result v0

    if-nez v0, :cond_0

    .line 370
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ag:Lcom/instagram/android/util/a;

    iget-object v1, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ai()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/util/a;->a(Landroid/view/View;)V

    .line 371
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/creation/b/v;->ac:Z

    .line 373
    :cond_0
    return-void
.end method

.method private ac()Lcom/instagram/android/directshare/widget/i;
    .locals 2

    .prologue
    .line 480
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ab:Lcom/instagram/android/directshare/widget/i;

    if-nez v0, :cond_0

    .line 481
    new-instance v0, Lcom/instagram/android/directshare/widget/i;

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p0}, Lcom/instagram/android/directshare/widget/i;-><init>(Landroid/content/Context;Lcom/instagram/android/directshare/widget/j;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->ab:Lcom/instagram/android/directshare/widget/i;

    .line 483
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ab:Lcom/instagram/android/directshare/widget/i;

    return-object v0
.end method

.method private ad()V
    .locals 2

    .prologue
    .line 537
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/h;->b()Z

    move-result v0

    if-nez v0, :cond_0

    .line 538
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setHint(Ljava/lang/CharSequence;)V

    .line 542
    :goto_0
    return-void

    .line 540
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    sget v1, Lcom/facebook/ba;->directshare_search_edit_text_hint:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setHint(I)V

    goto :goto_0
.end method

.method private ae()V
    .locals 1

    .prologue
    .line 545
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/h;->b()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    invoke-virtual {v0}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->hasFocus()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    invoke-virtual {v0}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-nez v0, :cond_0

    .line 548
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ag()V

    .line 552
    :goto_0
    return-void

    .line 550
    :cond_0
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->af()V

    goto :goto_0
.end method

.method private af()V
    .locals 2

    .prologue
    .line 555
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->d:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 556
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setVisibility(I)V

    .line 557
    return-void
.end method

.method private ag()V
    .locals 2

    .prologue
    .line 560
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->d:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 561
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setVisibility(I)V

    .line 562
    return-void
.end method

.method private ah()V
    .locals 2

    .prologue
    .line 585
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ac()Lcom/instagram/android/directshare/widget/i;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->aa()Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/i;->a(Ljava/util/List;)V

    .line 586
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ac()Lcom/instagram/android/directshare/widget/i;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/widget/i;->notifyDataSetChanged()V

    .line 587
    return-void
.end method

.method private ai()I
    .locals 1

    .prologue
    .line 590
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x2

    return v0
.end method

.method private aj()V
    .locals 2

    .prologue
    .line 638
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->h:Landroid/view/View;

    sget v1, Lcom/facebook/aw;->row_search_for_x_container:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 639
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ac()Lcom/instagram/android/directshare/widget/i;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/i;->b(Z)V

    .line 640
    return-void
.end method

.method private b(Landroid/content/Intent;)V
    .locals 2
    .parameter

    .prologue
    .line 647
    const-string v0, "MetadataFragment.IS_DIRECT_SHARE_SELECTED"

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/instagram/android/creation/b/v;->aj:Z

    .line 648
    return-void
.end method

.method private b(Landroid/view/View;)V
    .locals 1
    .parameter

    .prologue
    .line 643
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/instagram/n/k;->b(Landroid/content/Context;Landroid/view/View;)V

    .line 644
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/creation/b/v;)V
    .locals 0
    .parameter

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ab()V

    return-void
.end method

.method static synthetic b(Lcom/instagram/android/creation/b/v;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 57
    iput-boolean p1, p0, Lcom/instagram/android/creation/b/v;->ac:Z

    return p1
.end method

.method static synthetic c(Lcom/instagram/android/creation/b/v;)V
    .locals 0
    .parameter

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ae()V

    return-void
.end method

.method static synthetic d(Lcom/instagram/android/creation/b/v;)Landroid/widget/EditText;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->f:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/android/creation/b/v;)V
    .locals 0
    .parameter

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->aj()V

    return-void
.end method

.method static synthetic f(Lcom/instagram/android/creation/b/v;)Lcom/instagram/android/directshare/widget/i;
    .locals 1
    .parameter

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ac()Lcom/instagram/android/directshare/widget/i;

    move-result-object v0

    return-object v0
.end method

.method static synthetic g(Lcom/instagram/android/creation/b/v;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->i:Landroid/view/View;

    return-object v0
.end method

.method static synthetic h(Lcom/instagram/android/creation/b/v;)V
    .locals 0
    .parameter

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ah()V

    return-void
.end method

.method static synthetic i(Lcom/instagram/android/creation/b/v;)Lcom/instagram/pendingmedia/model/c;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    return-object v0
.end method

.method static synthetic j(Lcom/instagram/android/creation/b/v;)V
    .locals 0
    .parameter

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->af()V

    return-void
.end method

.method static synthetic k(Lcom/instagram/android/creation/b/v;)Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    return-object v0
.end method

.method static synthetic l(Lcom/instagram/android/creation/b/v;)Landroid/widget/ListView;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic m(Lcom/instagram/android/creation/b/v;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ah:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic n(Lcom/instagram/android/creation/b/v;)I
    .locals 1
    .parameter

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ai()I

    move-result v0

    return v0
.end method

.method static synthetic o(Lcom/instagram/android/creation/b/v;)Landroid/view/ViewGroup;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    return-object v0
.end method

.method static synthetic p(Lcom/instagram/android/creation/b/v;)Lcom/instagram/android/util/a;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ag:Lcom/instagram/android/util/a;

    return-object v0
.end method

.method static synthetic q(Lcom/instagram/android/creation/b/v;)Landroid/widget/HorizontalScrollView;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->b:Landroid/widget/HorizontalScrollView;

    return-object v0
.end method


# virtual methods
.method public X()Z
    .locals 1

    .prologue
    .line 566
    invoke-static {}, Lcom/instagram/android/directshare/h/a;->a()Lcom/instagram/android/directshare/h/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/h/a;->e()Z

    move-result v0

    return v0
.end method

.method public Y()I
    .locals 1

    .prologue
    .line 571
    invoke-static {}, Lcom/instagram/android/directshare/h/a;->a()Lcom/instagram/android/directshare/h/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/h/a;->f()I

    move-result v0

    return v0
.end method

.method public Z()Z
    .locals 1

    .prologue
    .line 576
    invoke-static {}, Lcom/instagram/android/directshare/h/a;->a()Lcom/instagram/android/directshare/h/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/h/a;->b()Z

    move-result v0

    return v0
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 6
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v5, 0x0

    .line 161
    sget v0, Lcom/facebook/ax;->layout_listview_nobackground:I

    invoke-virtual {p1, v0, p2, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 163
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v2, Lcom/facebook/au;->form_padding:I

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    .line 165
    const v0, 0x102000a

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    .line 166
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    const/high16 v3, 0x200

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setScrollBarStyle(I)V

    .line 167
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {v0, v5}, Landroid/widget/ListView;->setClipToPadding(Z)V

    .line 168
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->l()Landroid/content/res/Resources;

    move-result-object v3

    sget v4, Lcom/facebook/at;->gray_background:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getColor(I)I

    move-result v3

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setCacheColorHint(I)V

    .line 171
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/k;->d(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 172
    sget v0, Lcom/facebook/ax;->share_mode_selector:I

    iget-object v3, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {p1, v0, v3, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 173
    iget-object v3, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {v3, v0}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 175
    new-instance v3, Lcom/instagram/android/creation/b/s;

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->l()Landroid/content/res/Resources;

    move-result-object v4

    invoke-direct {v3, v4, v0}, Lcom/instagram/android/creation/b/s;-><init>(Landroid/content/res/Resources;Landroid/view/View;)V

    iput-object v3, p0, Lcom/instagram/android/creation/b/v;->Z:Lcom/instagram/android/creation/b/s;

    .line 177
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->Z:Lcom/instagram/android/creation/b/s;

    const/4 v3, 0x1

    invoke-virtual {v0, v3}, Lcom/instagram/android/creation/b/s;->a(I)V

    .line 178
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->Z:Lcom/instagram/android/creation/b/s;

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/s;->a()V

    .line 181
    :cond_0
    sget v0, Lcom/facebook/ax;->row_directshare_metadata_header:I

    iget-object v3, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {p1, v0, v3, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v3

    .line 183
    sget v0, Lcom/facebook/aw;->recipients_scroll_container:I

    invoke-virtual {v3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/HorizontalScrollView;

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->b:Landroid/widget/HorizontalScrollView;

    .line 185
    sget v0, Lcom/facebook/aw;->recipients_container:I

    invoke-virtual {v3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    .line 186
    sget v0, Lcom/facebook/aw;->people_picker_search:I

    invoke-virtual {v3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->d:Landroid/widget/ImageView;

    .line 187
    sget v0, Lcom/facebook/aw;->search_edit_text:I

    invoke-virtual {v3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    .line 189
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    invoke-virtual {v0, v5}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setClearButtonEnabled(Z)V

    .line 191
    sget v0, Lcom/facebook/ax;->directshare_row_search:I

    iget-object v4, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {p1, v0, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->h:Landroid/view/View;

    .line 192
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->h:Landroid/view/View;

    const-string v4, "TAG_ROW_FOOTER_SEARCH"

    invoke-virtual {v0, v4}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 193
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->h:Landroid/view/View;

    sget v4, Lcom/facebook/aw;->search_loading_spinner:I

    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->i:Landroid/view/View;

    .line 195
    sget v0, Lcom/facebook/ax;->row_caption:I

    iget-object v4, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {p1, v0, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v4

    .line 196
    sget v0, Lcom/facebook/aw;->row_caption_directshare:I

    invoke-virtual {v4, v0}, Landroid/view/View;->setId(I)V

    .line 197
    invoke-static {v4, v2}, Lcom/instagram/n/k;->d(Landroid/view/View;I)V

    .line 198
    invoke-static {v4, v2}, Lcom/instagram/n/k;->c(Landroid/view/View;I)V

    .line 200
    sget v0, Lcom/facebook/aw;->caption_text_view:I

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->f:Landroid/widget/EditText;

    .line 202
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {v0, v4}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 203
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 204
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/instagram/android/creation/b/v;->h:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 205
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->aj()V

    .line 207
    return-object v1
.end method

.method public a()V
    .locals 9

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 488
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/h;->c()Ljava/util/List;

    move-result-object v5

    .line 490
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v6

    .line 494
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ai()I

    move-result v1

    invoke-virtual {v0, v3, v1}, Landroid/view/ViewGroup;->removeViews(II)V

    move v2, v3

    .line 496
    :goto_0
    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v0

    if-ge v2, v0, :cond_0

    .line 497
    invoke-interface {v5, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/g;

    .line 498
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v7, Lcom/facebook/ax;->directshare_recipient:I

    iget-object v8, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    invoke-virtual {v1, v7, v8, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/instagram/android/directshare/widget/DirectShareRecipientView;

    .line 501
    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/g;->a()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v1, v7}, Lcom/instagram/android/directshare/widget/DirectShareRecipientView;->setTooltipString(Ljava/lang/String;)V

    .line 502
    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/g;->c()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v1, v7}, Lcom/instagram/android/directshare/widget/DirectShareRecipientView;->setUrl(Ljava/lang/String;)V

    .line 503
    iget-object v7, p0, Lcom/instagram/android/creation/b/v;->ad:Lcom/instagram/android/directshare/widget/d;

    invoke-virtual {v1, v7}, Lcom/instagram/android/directshare/widget/DirectShareRecipientView;->setOnDeleteKeyListener(Lcom/instagram/android/directshare/widget/d;)V

    .line 504
    invoke-virtual {v1, v0}, Lcom/instagram/android/directshare/widget/DirectShareRecipientView;->setTag(Ljava/lang/Object;)V

    .line 506
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    invoke-virtual {v0, v1, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V

    .line 496
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    .line 509
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    invoke-virtual {v0}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v0

    if-le v0, v4, :cond_1

    .line 513
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {v0, v4}, Landroid/widget/ListView;->setSelection(I)V

    .line 516
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setText(Ljava/lang/CharSequence;)V

    .line 518
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ad()V

    .line 519
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ae()V

    .line 521
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    if-le v0, v6, :cond_2

    .line 524
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ah:Landroid/os/Handler;

    iget-object v1, p0, Lcom/instagram/android/creation/b/v;->ae:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 527
    :cond_2
    invoke-interface {v5}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_3

    move v3, v4

    :cond_3
    invoke-direct {p0, v3}, Lcom/instagram/android/creation/b/v;->a(Z)V

    .line 528
    return-void
.end method

.method public a(Landroid/content/Context;)V
    .locals 3
    .parameter

    .prologue
    .line 462
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/content/Context;)V

    .line 463
    new-instance v0, Lcom/facebook/b/a/k;

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/facebook/b/a/k;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/facebook/b/a/k;->a()Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "MetadataFragment.INTENT_ACTION_SHARE_MODE_NOTIFY"

    iget-object v2, p0, Lcom/instagram/android/creation/b/v;->am:Lcom/instagram/android/creation/b/ak;

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "DirectShareRecipientsStore.BROADCAST_TARGET_RECIPIENTS_CHANGED"

    iget-object v2, p0, Lcom/instagram/android/creation/b/v;->al:Lcom/instagram/android/creation/b/aj;

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    invoke-interface {v0}, Lcom/facebook/b/a/i;->a()Lcom/facebook/b/a/j;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->ak:Lcom/facebook/b/a/j;

    .line 470
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ak:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->b()V

    .line 471
    return-void
.end method

.method public a(Landroid/view/View;)V
    .locals 5
    .parameter

    .prologue
    .line 229
    new-instance v0, Lcom/instagram/android/creation/a;

    iget-object v1, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-direct {v0, v1, p1, p0}, Lcom/instagram/android/creation/a;-><init>(Lcom/instagram/pendingmedia/model/c;Landroid/view/View;Landroid/support/v4/app/Fragment;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->ai:Lcom/instagram/android/creation/a;

    .line 230
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ai:Lcom/instagram/android/creation/a;

    invoke-virtual {v0}, Lcom/instagram/android/creation/a;->a()V

    .line 232
    sget v0, Lcom/facebook/aw;->caption_text_view:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 233
    new-instance v1, Lcom/instagram/android/creation/b/ac;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/ac;-><init>(Lcom/instagram/android/creation/b/v;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 242
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    new-instance v1, Lcom/instagram/android/creation/b/ad;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/ad;-><init>(Lcom/instagram/android/creation/b/v;)V

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 251
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ac()Lcom/instagram/android/directshare/widget/i;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 252
    invoke-direct {p0}, Lcom/instagram/android/creation/b/v;->ac()Lcom/instagram/android/directshare/widget/i;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->aa()Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/i;->a(Ljava/util/List;)V

    .line 254
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    new-instance v1, Lcom/instagram/android/creation/b/ae;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/ae;-><init>(Lcom/instagram/android/creation/b/v;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 268
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    new-instance v1, Lcom/instagram/android/creation/b/af;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/af;-><init>(Lcom/instagram/android/creation/b/v;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 286
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    new-instance v1, Lcom/instagram/android/creation/b/ag;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/ag;-><init>(Lcom/instagram/android/creation/b/v;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 299
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    new-instance v1, Lcom/instagram/android/creation/b/ah;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/ah;-><init>(Lcom/instagram/android/creation/b/v;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setOnDeleteKeyListener(Lcom/instagram/android/directshare/widget/g;)V

    .line 320
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 322
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->d:Landroid/widget/ImageView;

    new-instance v1, Lcom/instagram/android/creation/b/x;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/x;-><init>(Lcom/instagram/android/creation/b/v;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 331
    new-instance v0, Lcom/instagram/android/d/e/am;

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/instagram/android/creation/b/v;->an:Lcom/instagram/android/d/j/f;

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/instagram/android/d/e/am;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/f;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->aa:Lcom/instagram/android/d/e/am;

    .line 337
    new-instance v0, Lcom/instagram/android/creation/b/y;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/b/y;-><init>(Lcom/instagram/android/creation/b/v;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->ad:Lcom/instagram/android/directshare/widget/d;

    .line 345
    new-instance v0, Lcom/instagram/android/creation/b/z;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/b/z;-><init>(Lcom/instagram/android/creation/b/v;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->ae:Ljava/lang/Runnable;

    .line 365
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->a()V

    .line 366
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 212
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/v;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/f;

    new-instance v1, Lcom/instagram/android/creation/b/ab;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/creation/b/ab;-><init>(Lcom/instagram/android/creation/b/v;Landroid/view/View;)V

    invoke-interface {v0, v1}, Lcom/instagram/pendingmedia/model/f;->a(Ljava/lang/Runnable;)V

    .line 226
    return-void
.end method

.method protected a(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 619
    invoke-static {p1}, Lcom/instagram/n/i;->b(Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    .line 620
    iget-object v1, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    invoke-virtual {v1}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->clearFocus()V

    .line 623
    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 628
    :goto_0
    return-void

    .line 627
    :cond_0
    iget-object v1, p0, Lcom/instagram/android/creation/b/v;->aa:Lcom/instagram/android/d/e/am;

    invoke-virtual {v1, v0}, Lcom/instagram/android/d/e/am;->a(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public aa()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;"
        }
    .end annotation

    .prologue
    .line 581
    invoke-static {}, Lcom/instagram/android/directshare/h/a;->a()Lcom/instagram/android/directshare/h/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/h/a;->h()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 652
    const-string v0, "metadata_direct_share"

    return-object v0
.end method

.method public g_()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 428
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 430
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ah:Landroid/os/Handler;

    invoke-virtual {v0, v2}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 434
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    if-eqz v0, :cond_0

    .line 435
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/instagram/pendingmedia/model/h;->a(Lcom/instagram/pendingmedia/model/i;)V

    .line 437
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    invoke-virtual {v0, v2}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 438
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    invoke-virtual {v0, v2}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setOnDeleteKeyListener(Lcom/instagram/android/directshare/widget/g;)V

    .line 439
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 442
    iput-object v2, p0, Lcom/instagram/android/creation/b/v;->b:Landroid/widget/HorizontalScrollView;

    .line 443
    iput-object v2, p0, Lcom/instagram/android/creation/b/v;->c:Landroid/view/ViewGroup;

    .line 444
    iput-object v2, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    .line 445
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    if-eqz v0, :cond_1

    .line 446
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 448
    :cond_1
    iput-object v2, p0, Lcom/instagram/android/creation/b/v;->g:Landroid/widget/ListView;

    .line 449
    iput-object v2, p0, Lcom/instagram/android/creation/b/v;->h:Landroid/view/View;

    .line 450
    iput-object v2, p0, Lcom/instagram/android/creation/b/v;->ai:Lcom/instagram/android/creation/a;

    .line 451
    iput-object v2, p0, Lcom/instagram/android/creation/b/v;->f:Landroid/widget/EditText;

    .line 452
    iput-object v2, p0, Lcom/instagram/android/creation/b/v;->i:Landroid/view/View;

    .line 454
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->Z:Lcom/instagram/android/creation/b/s;

    if-eqz v0, :cond_2

    .line 455
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->Z:Lcom/instagram/android/creation/b/s;

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/s;->b()V

    .line 456
    iput-object v2, p0, Lcom/instagram/android/creation/b/v;->Z:Lcom/instagram/android/creation/b/s;

    .line 458
    :cond_2
    return-void
.end method

.method public h(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    .line 406
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->h(Landroid/os/Bundle;)V

    .line 407
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->e:Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    new-instance v1, Lcom/instagram/android/creation/b/ai;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/instagram/android/creation/b/ai;-><init>(Lcom/instagram/android/creation/b/v;Lcom/instagram/android/creation/b/w;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->setOnFilterTextListener(Lcom/instagram/ui/widget/searchedittext/b;)V

    .line 408
    return-void
.end method

.method public k_()V
    .locals 1

    .prologue
    .line 475
    invoke-super {p0}, Lcom/instagram/e/b/b;->k_()V

    .line 476
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->ak:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->c()V

    .line 477
    return-void
.end method

.method public x()V
    .locals 2

    .prologue
    .line 412
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 414
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->af:Landroid/app/Dialog;

    if-eqz v0, :cond_0

    .line 415
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->af:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V

    .line 416
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/creation/b/v;->af:Landroid/app/Dialog;

    .line 420
    :cond_0
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/v;->aj:Z

    if-eqz v0, :cond_1

    .line 421
    iget-object v0, p0, Lcom/instagram/android/creation/b/v;->a:Lcom/instagram/pendingmedia/model/c;

    iget-object v1, p0, Lcom/instagram/android/creation/b/v;->ai:Lcom/instagram/android/creation/a;

    invoke-virtual {v1}, Lcom/instagram/android/creation/a;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/c;->d(Ljava/lang/String;)V

    .line 423
    :cond_1
    invoke-static {}, Lcom/instagram/pendingmedia/b/c;->a()Lcom/instagram/pendingmedia/b/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/b/c;->b()V

    .line 424
    return-void
.end method
